Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / core / datastore / src / commonMain / kotlin / org / meshtastic / core / datastore / model / PendingFirmwareRecovery.kt

Displaying Raw • Download

core/datastore/src/commonMain/kotlin/org/meshtastic/core/datastore/model/PendingFirmwareRecovery.kt bf929c20f274232e0eb8ddc19b2dc82403e99e5b (bf929c20) Text, 2.04 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.datastore.model

Tff7b72import T7ee787kotlinx.serialization.Serializable

T8b949e/**
* A firmware update that was started but may not have finished, leaving the device stranded in nRF DFU/bootloader mode.
*
* Captured at DFU-trigger time (while still connected, when the hardware model and firmware channel are known) so the
* device can later be re-flashed while disconnected — the bootloader advertises indefinitely at `MAC+1` but exposes no
* mesh service, so there is otherwise no `address → hardware` link to reconstruct which firmware it needs.
*
* @property fullAddress The device address with its transport prefix (`radioPrefs.devAddr`), used to reconnect after
* recovery and to clear the record when the device returns on its own.
* @property hwModel The numeric hardware model, for re-resolving the [org.meshtastic.core.model.DeviceHardware].
* @property pioEnv The PlatformIO environment string, the second key for hardware resolution.
* @property releaseType The firmware channel name (`STABLE`/`ALPHA`) the interrupted update was flashing.
* @property deviceName The last-known device name, shown in the recovery prompt.
*/
Tf0883e@Serializable
Tff7b72data Tff7b72class T56d364PendingFirmwareRecoveryTb4b4b4(
Tff7b72val Te6edf3fullAddressTb4b4b4: Tffa657StringTb4b4b4,
Tff7b72val Te6edf3hwModelTb4b4b4: Tffa657IntTb4b4b4,
Tff7b72val Te6edf3pioEnvTb4b4b4: Tffa657StringTb4b4b4,
Tff7b72val Te6edf3releaseTypeTb4b4b4: Tffa657StringTb4b4b4,
Tff7b72val Te6edf3deviceNameTb4b4b4: Tffa657StringTb4b4b4,
Tb4b4b4)

Served by rngit 1.5.0 - Generated in 0.13s